package com.woniuxy.entity;

import java.io.Serializable;

/**
 * 题目表(TopicTable)实体类
 *
 * @author makejava
 * @since 2022-05-31 11:25:03
 */

public class TopicTable implements Serializable {
    private static final long serialVersionUID = -58594774803451340L;
    /**
     * 题目表的id
     */
    private Integer topicId;
    /**
     * 题干
     */
    private String topicDry;
    /**
     * 题型表的id（外键）
     */
    private Integer topicTypeId;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 跟新人
     */
    private String updateUser;
    /**
     * 跟新时间
     */
    private String updateTime;
    private TopicTypeTable topicType;//题目类型
    private ComplexityTable complexityTable;//难易程度
    private Integer complexityId;//难易程度id
    private Course course;//题库表

    public TopicTable() {
    }

    public TopicTable(Integer topicId, String topicDry, Integer topicTypeId, String createUser, String createTime, String updateUser, String updateTime, TopicTypeTable topicType, ComplexityTable complexityTable, Integer complexityId, Course course) {
        this.topicId = topicId;
        this.topicDry = topicDry;
        this.topicTypeId = topicTypeId;
        this.createUser = createUser;
        this.createTime = createTime;
        this.updateUser = updateUser;
        this.updateTime = updateTime;
        this.topicType = topicType;
        this.complexityTable = complexityTable;
        this.complexityId = complexityId;
        this.course = course;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    public String getTopicDry() {
        return topicDry;
    }

    public void setTopicDry(String topicDry) {
        this.topicDry = topicDry;
    }

    public Integer getTopicTypeId() {
        return topicTypeId;
    }

    public void setTopicTypeId(Integer topicTypeId) {
        this.topicTypeId = topicTypeId;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public TopicTypeTable getTopicType() {
        return topicType;
    }

    public void setTopicType(TopicTypeTable topicType) {
        this.topicType = topicType;
    }

    public ComplexityTable getComplexityTable() {
        return complexityTable;
    }

    public void setComplexityTable(ComplexityTable complexityTable) {
        this.complexityTable = complexityTable;
    }

    public Integer getComplexityId() {
        return complexityId;
    }

    public void setComplexityId(Integer complexityId) {
        this.complexityId = complexityId;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    @Override
    public String toString() {
        return "TopicTable{" +
                "topicId=" + topicId +
                ", topicDry='" + topicDry + '\'' +
                ", topicTypeId=" + topicTypeId +
                ", createUser='" + createUser + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", topicType=" + topicType +
                ", complexityTable=" + complexityTable +
                ", complexityId=" + complexityId +
                ", course=" + course +
                '}';
    }
}